<?php
/**
 * Project: Espolon
 * Licence: BSD License
 * Link: http://espolon.org/
 * Copyright: Nicolas de Bari Embriz Garcia Rojas <nbari at espolon dot org>
 * Author: Nicolas de Bari Embriz Garcia Rojas <nbari at espolon dot org>
 * Version: Beta
 */

if (!defined('SITE_ROOT')) exit('No direct script access allowed');

class Article extends Dispatcher {
  private $id;
  private $sid;
  private $title;
  private $body;
  private $msg;

  function setId ($id) { $this->id = (is_number($id)) ? $id : sign_out(); }
  function setSid ($sid) { $this->sid = (is_number($id)) ? $id : sign_out(); }
  function setTitle ($title) { $this->title = $title; }
  function setBody ($body) { $this->body = $body; }
  function setMsg ($msg) {$this->msg = $msg; }

  function getId() { return $this->id; }
  function getSid() { return $this->sid; }
  function getTitle() { return $this>title; }
  function getBody() { return $this->body; }
  function getMsg() { return $this->msg; }

  function addArticle($values) {
    echo '<pre>';
    print_r($values);
  }

}

?>